package com.api.shopapi.service;

import com.api.shopapi.entity.JKNiaosuan;
import com.api.shopapi.entity.dto.JKNiaosuanDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

@Service
public interface JKNiaosuanService {

    int insert(JKNiaosuan jkNiaosuan);

    int update(JKNiaosuan jkNiaosuan);

    int delete(String jkNiaosuanCode);

    JKNiaosuan getByJkNiaosuanCode(String jkNiaosuanCode);

    PageInfo<JKNiaosuan> getPageList(int pageIndex,int pageSize,String userCode,String startTime,String endTime);

    PageInfo<JKNiaosuanDTO> getAdmPageList(int pageIndex, int pageSize, String name, String governmentCode, String startTime, String endTime);

}
